package com.cug.campus_sh_market_server.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商品评论
 * </p>
 *
 * @author sxt
 * @since 2022-03-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="GoodsComments对象", description="商品评论")
public class GoodsComments extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "评论内容")
    private String comments;

    @ApiModelProperty(value = "商品id")
    //@QueryWrapperUtil.Column()
    private Integer goodsId;

    @ApiModelProperty(value = "回复的评论id(默认0, 代表自发评论)")
    private Integer replyTarget;

}
